<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<script type="text/javascript">
	$(document).ready(function(){
		$("#loginForm").submit(function(){
			if($(":text[name=id]").val()==""){
				alert("아이디를 입력하세요!");
				return false;
			} else if($(":password[name=password]").val()==""){
				alert("비밀번호를 입력하세요!");
				return false;
			}
		})
	})
</script>

<style>
#loginForm{
	margin-left: 350px;
	margin-right: 200px;
	margin-bottom: 200px;
}
</style>

<body>
<form action="loginconsumer.do" method="post" id="loginForm" class="text">
<h2> Login </h2>
ID<br>
<input type="text" name="id"><br>
PASSWORD<br>
<input type="password" name="password"><br><hr>
<input type="submit" value="Login" class="submit">
</form>
</body>
